<template>
  <div class="infoMain">
    <Breadcrumb :breadName="`${info.total}`" class="breadCrumd" />
    <div class="infoBox">
      <div class="infoImgBox">
        <img :src="info.picture" />
      </div>
      <div class="infoTextBox">
        <h1>{{ info.total }}</h1>
        <p>
          职位: <span>{{ info.member }}</span>
        </p>
        <p>
          招聘要求: <span>{{ info.workRequire }}</span>
        </p>
        <p>
          工资待遇: <span>{{ info.workSalary }}</span>
        </p>
        <p>
          工作地点: <span>{{ info.workPlace }}</span>
        </p>
        <p>
          工作时间: <span>{{ info.workTime }}</span>
        </p>
        <p>
          招聘人数: <span>{{ info.recruitsNum }}</span>
        </p>
        <p>
          招聘时间: <span>{{ info.recruitsTime }}</span>
        </p>
        <p>
          截止时间: <span>{{ info.recruitsEndTime }}</span>
        </p>
        <p>
          负责人: <span>{{ info.lead }}</span>
        </p>
        <p>
          联系方式: <span>{{ info.contact }}</span>
        </p>
        <p>
          发布日期: <span>{{ info.releaseDate }}</span>
        </p>
        <p>
          点击次数: <span>{{ info.clickNum }}</span>
        </p>
      </div>
    </div>
    <div class="entrance">
      <button @click="$router.push({name:'zyzyp',query:{title:JSON.stringify(info.total)}})">点击报名</button>
    </div>
  </div>
</template>

<script>
import { reqZhiYuanZeList } from "../../../../api";
export default {
  data() {
    return {
      info: {},
    };
  },
  created() {
    this.getInfo();
  },
  methods: {
    async getInfo() {
      let result = await reqZhiYuanZeList({
        pageNum: 1,
        pageSize: 1,
        id: this.$route.params.id,
      });
      if (result.code != 200) return console.error("faile");
      this.info = result.data.list[0];
    },
  },
};
</script>

<style lang="less" scoped>
.infoMain {
  width: 50%;
  margin: 30px auto;
  .breadCrumd {
    background-color: lightblue;
    padding: 15px;
    border-radius: 9px;
  }
  .infoBox {
    display: flex;
    .infoImgBox {
      flex: 0.5;
      img {
        width: 320px;
        height: 320px;
      }
    }
    .infoTextBox {
      flex: 0.5;
      h1 {
        color: #000;
        text-align: center;
      }
      p {
        margin: 28px 0px;
        span {
          margin-left: 50px;
        }
      }
      .special {
        padding-left: 30px;
      }
    }
  }
  .infoContent {
    border: 1px solid grey;
    height: 300px;
    margin-top: 20px;
    .contentTitle {
      height: 30px;
      background-color: lightgrey;
      span {
        line-height: 30px;
        box-sizing: border-box;
        display: inline-block;
        height: 30px;
        padding: 0 5px;
        background-color: #fff;
        font-size: 14px;
        border-right: 1px solid silver;
      }
    }
    .contentText {
      margin: 10px;
    }
  }
  .entrance {
    text-align: center;
    margin-top: 20px;
    button{
      padding: 20px 30px;
      font-size: 30px;
      border-radius: 15px;
      background-color: cornflowerblue;
      color: #fff;
      outline: none;
      border: none;
      transition: all 2s;
    }
    button:hover{
      cursor: pointer;
      
      transform: scale(1.1);
    }
  }
}
</style>